package org.wekit.engine.pvm.delegate;


public interface SubProcessActivityBehavior  extends ActivityBehavior{

	/**
	 * 在子流程结束前触发completing事件
	 * @param execution
	 * @param subProcessInstance
	 * @throws Exception
	 */
	void completing(DelegateExecution execution,DelegateExecution subProcessInstance) throws Exception;
	
	/**
	 * 在子流程结束后立马执行completed事件
	 * @param excution
	 * @throws Exception
	 */
	void completed(ActivityExecution excution) throws Exception;
}
